<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@page import="java.util.List"%>
<%@page import="com.solution.model.QuestionType"%>
<%@page import="com.solution.model.AnswerType"%>
<%@page import="com.solution.constant.LoginConstants"%>
<%@page import="java.util.HashMap"%>
<%List<QuestionType> questionTypeList= (List<QuestionType>)session.getAttribute(LoginConstants.EXAMINEE_QUESTIONS);
long examSize = 0;
long min = 0;
if(questionTypeList != null){
	examSize = questionTypeList.size();
}
%>
<script language="javascript">
function fnSubmit(){
	
	window.showModalDialog('/showQuestion.do',window,'dialogLeft:180;dialogTop:600px;dialogWidth=900px;dialogHeight=600px;toolbar=yes;resizable=no;maximize:no;minimize:no');
	
}
function finishExam()
	{		
		document.examineeForm.action='/finishExam.do';
		document.examineeForm.submit();
	}
</script>
<html:form action="/examineeDashboard">
<table width="850" border="0" cellpadding="00" cellspacing="0" align="center">
      <tr>
        <td class="headingExaminee">Instructions</td>
      </tr>
	  <tr>
		<td height="25" colspan="4" valign="top"  >&nbsp;</td>
	  </tr>
	  <tr>
			<td valign="top"><jsp:include page="showErrorMessage.jsp" /></td>
		</tr>
</table>
<div class="rightPanelHelp">
<ul>
	<logic:present name="examineeForm" property="examType.time">
	<bean:define id="totalSec" name="examineeForm" property="examType.time" />
	<%
	if(totalSec != null){
		min =((Long)totalSec)/60;
	}
	%>
	</logic:present>
	<li>Read the instructions carefully before proceeding.</li>
	<li>Cell phones and other electronic devices to be turned off before starting the assessment.</li>
	<li>Do not close or click on the other screen/s, as this will close the test which cannot be resumed again.</li>
	<li>Click on the START button, to begin the assessment.</li>
	<li>This is a timed assessment once started cannot be cancelled. The clock will appear on the Top left side of the screen and will help you to track time allotted for the exam. After completion of the time limit, you will be automatically logged out of the exam.</li>
	<li>The Exam contains <strong><%=examSize%></strong> questions to be completed in <strong><%=min%></strong> minutes.</li>
	<li>Each question is for One Mark.</li>
	<li>Try and respond to every question, since there is no negative marking.</li>
	<li>All answers to be checked carefully before submitting and clicking on FINISH button. It is advised not to click the button, until you are ready to submit the assessment for evaluation.</li>
	<li>PREVIOUS button is to go to the previous question.</li>
	<li>RESET button is to erase the selected option, in case you want to leave the question.</li>
	<li>NEXT button is to go to the next question.</li>
</ul>
</div>
  <table width="640" border="0" cellpadding="00" cellspacing="0" align="center">
  <logic:notEqual name="examineeForm" property="examCreated" value="NO">
      <tr>
        <td><input type="button" class="imageButton" value="Start" onClick="javascript:fnSubmit()"></td>
        <td>&nbsp;</td>
      </tr>
   </logic:notEqual>   
  </table>
</html:form>